import request from '@/utils/request'

export function getGroupPage(data) {
  return request({
    url: '/system/group/page',
    method: 'get',
    params: data
  })
}

export function addGroup(data) {
  return request({
    url: '/system/group',
    method: 'post',
    data
  })
}

export function getGroupInfo(id) {
  return request({
    url: `/system/group/info/${id}`,
    method: 'get',
  })
}

export function updateGroup(data) {
  return request({
    url: '/system/group',
    method: 'put',
    data
  })
}

export function deleteGroup(ids) {
  return request({
    url: `/system/group/${ids}`,
    method: 'delete',
  })
}